package com.xms.dependency.service;

import com.xms.datacore.service.IDeleterService;
import com.xms.dependency.XmsDependencyException;
import com.xms.dependency.entity.Dependency;

import java.sql.SQLException;
import java.util.UUID;

/**
 * <p>
 * IDependencyDeleterService
 * </p>
 *
 * @author migo
 * @since 2021/10/23
 */
public interface IDependencyDeleterService extends IDeleterService<Dependency> {

    boolean deleteByDependentId(int dependentComponentType, UUID... dependentId) throws SQLException, XmsDependencyException;

    boolean deleteByDependentId(String dependentComponentName, UUID... dependentId) throws SQLException, XmsDependencyException;

    boolean deleteByRequiredId(int requiredComponentType, UUID... requiredId) throws SQLException, XmsDependencyException;

    boolean deleteByRequiredId(String requiredComponentName, UUID... requiredId) throws SQLException, XmsDependencyException;
}
